<template>
  <div class="theme-and-top">
    <ThemeSwitch />
    <BackToTop />
  </div>
</template>

<script setup>
import ThemeSwitch from './ThemeSwitch.vue'
import BackToTop from './BackToTop.vue'
</script>

<style scoped>
.theme-and-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  bottom: 30px;
  right: 30px;
  gap: 12px;
  z-index: 100;
}

.theme-and-top>* {
  width: 40px;
  height: 40px;
  font-size: 20px;
}

@media (max-width: 768px) {
  .theme-and-top {
    bottom: 20px;
    right: 20px;
    gap: var(--gap);
  }
}
</style>